package com.zkrt.upms.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

@RestController
@RequestMapping("/common")
public class CommonHealthController {

    @RequestMapping("/health")
    public String health() {
        return new StringBuffer("200,").append(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())).toString();
    }



}
